Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

1Learning Outcomes

2Tracing the Branch Datapath

3Branch Comparator Block

Branch Comparator Block

Figure 1:Branch Comparator Block

This subcircuit takes two inputs and outputs the result of comparing the two inputs. This output later is used to implementing branches.

3.1Course Project Details

Table 1:Signals for Branch Comparator. Course project signal names, if different, are in parentheses.

NameDirectinoBit WidthDescription
A (BrData1)Input32First value to compare
B (BrData2)Input32Second value to compare
BrUnInput11 when an unsigned comparison is wanted, and 0 when a signed comparison is wanted
BrEqOutput1Set to 1 if the two values are equal
BrLtOutput1Set to 1 if the value in rs1 is less than the value in rs2